package in.muton.edushare.poll.answers.individual;

import org.apache.wicket.ajax.markup.html.navigation.paging.AjaxPagingNavigator;
import org.apache.wicket.markup.html.navigation.paging.IPageable;

public class EdushareAjaxPagingNavigation extends AjaxPagingNavigator {
	private static final long serialVersionUID = -3719437373534119985L;
	IPageable pageableListView;

	public EdushareAjaxPagingNavigation(String id, IPageable pageable) {
		super(id, pageable);
		this.pageableListView = pageable;
	}

	@Override
	public boolean isVisible() {
		if (pageableListView.getPageCount() <= 1)
			return false;
		return true;
	}
}
